package com.tudouji.project.produce.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.produce.mapper.ProduceplanitemMapper;
import com.tudouji.project.produce.domain.Produceplanitem;
import com.tudouji.project.produce.service.IProduceplanitemService;

/**
 * 生产计划明细Service业务层处理
 * 
 * @author tudouji
 * @date 2022-06-01
 */
@Service
public class ProduceplanitemServiceImpl implements IProduceplanitemService 
{
    @Autowired
    private ProduceplanitemMapper produceplanitemMapper;

    /**
     * 查询生产计划明细
     * 
     * @param guid 生产计划明细ID
     * @return 生产计划明细
     */
    @Override
    public Produceplanitem selectProduceplanitemById(String guid)
    {
        return produceplanitemMapper.selectProduceplanitemById(guid);
    }

    /**
     * 查询生产计划明细列表
     * 
     * @param produceplanitem 生产计划明细
     * @return 生产计划明细
     */
    @Override
    public List<Produceplanitem> selectProduceplanitemList(Produceplanitem produceplanitem)
    {
        return produceplanitemMapper.selectProduceplanitemList(produceplanitem);
    }

    /**
     * 新增生产计划明细
     * 
     * @param produceplanitem 生产计划明细
     * @return 结果
     */
    @Override
    public int insertProduceplanitem(Produceplanitem produceplanitem)
    {
        return produceplanitemMapper.insertProduceplanitem(produceplanitem);
    }

    /**
     * 修改生产计划明细
     * 
     * @param produceplanitem 生产计划明细
     * @return 结果
     */
    @Override
    public int updateProduceplanitem(Produceplanitem produceplanitem)
    {
        return produceplanitemMapper.updateProduceplanitem(produceplanitem);
    }

    /**
     * 批量删除生产计划明细
     * 
     * @param guids 需要删除的生产计划明细ID
     * @return 结果
     */
    @Override
    public int deleteProduceplanitemByIds(String[] guids)
    {
        return produceplanitemMapper.deleteProduceplanitemByIds(guids);
    }

    /**
     * 删除生产计划明细信息
     * 
     * @param guid 生产计划明细ID
     * @return 结果
     */
    @Override
    public int deleteProduceplanitemById(String guid)
    {
        return produceplanitemMapper.deleteProduceplanitemById(guid);
    }
}
